<?php
################################################################################
##              -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =-                 #
## --------------------------------------------------------------------------- #
##  PHP AdminPanel Free                                                        #
##  Developed by:  ApPhp <info@apphp.com>                                      # 
##  License:       GNU GPL v.2                                                 #
##  Site:          http://www.apphp.com/php-adminpanel/                        #
##  Copyright:     PHP AdminPanel (c) 2006-2009. All rights reserved.          #
##                                                                             #
##  Additional modules (embedded):                                             #
##  -- PHP DataGrid 4.2.8                   http://www.apphp.com/php-datagrid/ #
##  -- JS AFV 1.0.5                 http://www.apphp.com/js-autoformvalidator/ #
##  -- jQuery 1.1.2                                         http://jquery.com/ #
##                                                                             #
################################################################################

    // check if previouse name was saved
    $admin_username = (isset($_COOKIE['remember_name']) && ($_COOKIE['remember_name'] != "")) ? $_COOKIE['remember_name'] : "";
    $remember_me    = (isset($_COOKIE['remember_name']) && ($_COOKIE['remember_name'] != "")) ? "checked" : "";

    session_start();
    include_once("inc/config.inc.php");   
    include_once("inc/functions.inc.php");    
    require_once("inc/settings.inc.php");
    
    $log = (isset($_REQUEST['log'])) ? "out" : "";
    $msg = (isset($_REQUEST['msg'])) ? $_REQUEST['msg'] : "";
    
    $adm_logged = (isset($_SESSION['adm_logged'])) ? $_SESSION['adm_logged'] : false;

    if($adm_logged == true){	    
        header("Location: index.php");
	exit;    		
    }


?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
    <title><? echo $SETTINGS['site_name']; ?> :: Admin Panel</title>

    <meta http-equiv=Content-Type content="text/html; charset=utf-8">
    <link href="css/style_<? echo $SETTINGS['css_style'];?>.css" type=text/css rel=stylesheet>
    <script type='text/javascript' src='modules/jsafv/lang/jsafv-en.js'></script>
	<script type='text/javascript' src='modules/jsafv/chars/diactric_chars_utf8.js'></script>
    <script type="text/javaScript" src="modules/jsafv/form.scripts.js"></script>
    <script type="text/javaScript" src="js/functions.js"></script>
   
	
</head>
<body>

<table cellspacing="1" cellpadding="6" width="85%" align="left" border="0">
<tbody>
<tr>
    <td valign="top" nowrap height="350px">            
    <br><br>
    <form name="frmLogin" action="check_olvido.php" method="post">                                    
	<input type="hidden" value="login" name="do"> 

	<table cellspacing="1" cellpadding="6" width="400px" align="center" border="0" bgcolor="#e8e8e8">
	<tbody>
	<tr>
	    <td  colspan="2" align="center" bgcolor="#c65f1c"><strong style="color:#FFFFFF">Por favor, introduzca su rif y correo para restaurar su clave</strong></td>
	</tr>
	<tr>
	    <td class="alt1">
		<div class="alt2 raised" align="center">
		<?php
		    if($msg == "1"){
			echo "<label class='msg_error'>Rif o correo incorrecto!</label>";
		    }
		?>			
		<div align="left">
		    <fieldset>
		    <legend>Olvidó su clave</legend>
		    <div style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px">
			<table cellSpacing="0" width="100%" cellPadding="6" border="0" bgcolor="#f7f7f7">
			<tbody>
			<tr vAlign="top">
			    <td width="100%">Rif<br> <select name="nacionalidad" id="nacionalidad"  title="Tipo de rif" class="bginput" >
                    <option value="J">J</option>
                    <option value="V">V</option>
                    <option value="G">G</option>
                  </select>
			      <input type="text" class="bginput" size="43" maxsize="100" id="rif" name="rif" title="Rif">
		     			      </td>
			</tr>
			<tr vAlign=top>
			    <td>Correo Electrónico<br>
			      <input type="text" class="bginput" size="50" maxsize="100" id="correo" name="correo" title="Correo"></td>
			</tr>
			</tbody>
			</table>
		    </div>
		    </fieldset> 
		</div>
		</div>
		<!--div style="MARGIN-TOP: 6px" align=center>
		    <input class="button" accessKey="s" type="submit" value="Enviar"> 
		</div-->
	    </td>
	</tr>
	</tbody>
	<tr bgcolor="#cbc8c1">
	<td><div style="MARGIN-TOP: 0px; background-color:#cbc8c1" align=center >
		    <input class="button" accessKey="s" type="submit" value="Enviar"> 
		</div>
	</td>
	</tr>
	</table>
    </form>
    
    </td>
</tr>
</tbody>
</table>          
</body>
</html>

<script>
document.getElementById("nacionalidad").focus();
</script>